import { BrowserRouter as Router, Route, Redirect } from 'react-router-dom'

import Login from './pages/Login'
import Layout from './pages/Layout'

function App () {
  return (
    <div className='app'>
      <Router>
        <Route exact path='/' render={() => <Redirect to='/home' />} />
        <Route path='/login' component={Login} />
        <Route path='/home' component={Layout} />
      </Router>
    </div>
  )
}

export default App
